package org.rupa.common.model;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.rupa.common.constant.ZkPathConstant;

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class ServiceInfo {
    private String address;
    private String name;

    @Override
    public String toString() {
        return ZkPathConstant.REGISTRY + "/" + name + "/" + address;
    }
}
